<script type="text/javascript">
        function jingdian_navtab_onClose() {
                $(this).navtab('switchTab', 'Product/jingdian');
        }
        
</script>
<div class="bjui-pageHeader">
        <form id="pagerForm" data-toggle="ajaxsearch" action="{url}" method="post">
                <input type="hidden" name="pageSize" value="{$numPerPage}" >
                <input type="hidden" name="pageCurrent" value="{$currentPage}">
                <input type="hidden" name="orderField" value="{$orderField}">
                <input type="hidden" name="orderDirection" value="{$orderDirection}">
                <div class="bjui-searchBar">
                        <label>目的地：</label>
                        <input type="hidden" name="locationk.id"  value="{$_REQUEST['locationk_id']|default=''}" />
                        <input type="text" data-title='选择目的地' name="locationk.name" value="{$_REQUEST['locationk_name']|default=''}" size="10" data-toggle="lookup" data-url="{:U('Pub/get_location_single')}" data-group="locationk" data-width="300" data-height="400" readonly="true" />
                        <button type="submit"  class="btn-default" data-icon="search">查询</button>
                        <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">清空查询</a>
                        <ul style="margin-top:10px;">
                                <li>
                                        <a href="{:U('Product/jingdian_add')}" data-on-close="jingdian_navtab_onClose" class="btn btn-green" data-id="product_jingdian_add" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-toggle="navtab">新增热门景点</a>
                                        <a href="{:U('Product/jingdian_del')}" data-idname="id" data-group="id" data-toggle="doajaxchecked"  class="btn btn-red"  data-confirm-msg="确定要删除选中的信息吗？">删除选中</a>
                                        <a href="{:U('Product/jingdian_show_ischecked?act=do')}" class="btn btn-default" data-icon='edit'  data-idname="id" data-group="id" data-toggle="doajaxchecked">审核</a>
                                        <a href="{:U('Product/jingdian_show_ischecked?act=un')}" class="btn btn-orange" data-icon='lock' data-idname="id" data-group="id" data-toggle="doajaxchecked">取消审核</a>
                                        <a href="{:U('Product/jingdian_show_istop?act=do')}" class="btn btn-default" data-icon="flag" data-idname="id" data-group="id" data-toggle="doajaxchecked">置顶</a>
                                        <a href="{:U('Product/jingdian_show_istop?act=un')}" class="btn btn-orange" data-idname="id" data-group="id" data-toggle="doajaxchecked">取消置顶</a>

                                </li>
                        </ul>
                </div>
        </form>

</div>

<div class="bjui-pageContent">
        <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
                <thead>
                        <tr>

                                <th width="22">
                                        <input type="checkbox" class="checkboxCtrl" data-group="id" data-toggle="icheck">
                                </th>
                                <th data-order-field="id" width="30">ID</th>
                                <th>目的地名称</th>
                                <th>重定向字符</th>
                                <th data-order-field="hits">浏览次数</th>
                                <th width="65" align="center">是否置顶</th>
                                <th width="65" align="center">是否审核</th>
                                <th width="95">操作</th>
                        </tr>
                </thead>
                <tbody>
                        {neq name="list" value=''}
                        {volist name="list" id="vo"}
                        <tr>
                                <td>
                                        <input type="checkbox" name="id" data-toggle="icheck" value="{$vo.id}">
                                </td>
                                <td>{$vo.id}</td>
                                <td>{$vo.location_name}</td>
                                <td>{$vo.write_string}</td>
                                <td>{$vo.hits}</td>
                                <td align='center'>
                                        {eq name="vo['istop']" value="0"}
                                        <a href="{:U('Product/jingdian_show_istop?act=do&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/red.gif" alt="不置顶" align="absmiddle" width="16px" />
                                        </a>
                                        {else /}
                                        <a href="{:U('Product/jingdian_show_istop?act=un&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/green.gif" alt="置顶" align="absmiddle" width="16px" />
                                        </a>
                                        {/eq}
                                </td>
                                <td align='center'>
                                        {eq name="vo['status']" value="0"}
                                        <a href="{:U('Product/jingdian_show_ischecked?act=do&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/red.gif" alt="未审核" align="absmiddle" width="16px" />
                                        </a>
                                        {else /}
                                        <a href="{:U('Product/jingdian_show_ischecked?act=un&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/green.gif" alt="审核通过" align="absmiddle" width="16px" />
                                        </a>
                                        {/eq}
                                </td>
                                <td>
                                        <a href="{:U('Product/jingdian_add?id='.$vo['id'])}" data-on-close="jingdian_navtab_onClose"  class="btn btn-green" data-id='jingdian_jingdian_add' data-toggle="navtab" data-title="编辑新闻信息">编辑</a>
                                        <a href="{:U('Product/jingdian_del?id='.$vo['id'])}"  class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删除</a>
                                </td>


                        </tr>
                        {/volist}
                        {else /}
                        <tr><td colspan="9" align="center">暂无记录</td></tr>
                        {/neq}
                </tbody>
        </table>
       
</div>
 <div class="bjui-pageFooter">
                <div class="pages">
                        <span> 每页&nbsp;</span>
                        <div class="selectPagesize">
                                <select data-toggle="selectpicker" data-toggle-change="changepagesize" class="show-tick" >
                                        <option {eq name="numPerPage" value="20"} selected="selected" {/eq} value="20">20</option>
                                        <option {eq name='numPerPage' value='40'} selected="selected" {/eq} value="40">40</option>
                                        <option {eq name='numPerPage' value='120'} selected="selected" {/eq} value="120">120</option>
                                        <option {eq name='numPerPage' value='150'} selected="selected" {/eq} value="150">150</option>
                                </select>
                        </div>
                        <span>&nbsp;条,共 {$totalCount} 条 </span>


                </div>
                <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="{$numPerPage}" data-page-current="{$currentPage}">
                </div>
        </div>


